package com.woniuxy.microloanserver.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

/**
 * (LoanOrder)借贷订单实体类
 *
 * @author makejava
 * @since 2021-04-19 14:48:55
 */
@Data
@ApiModel(value = "订单实体类")
public class LoanOrderBean implements Serializable {
    private static final long serialVersionUID = 336413697396700421L;
    /**
     * 借款订单id
     */
    private Integer id;
    /**
     * 订单编号
     */
    private String orderNumber;
    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id", required = true)
    private Integer fkUserId;
    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名", required = true)
    private String userName;
    /**
     * 借款时间
     */
    private String createTime;
    /**
     * 借款金额
     */
    @ApiModelProperty(value = "借款金额", required = true)
    private BigDecimal sumMoney;
    /**
     * 贷款提供方
     */
    private String provider = "祥瑞金融银行";
    /**
     * 利率
     */
    @ApiModelProperty(value = "利率", required = true)
    private BigDecimal interestRate;
    /**
     * 总服务费
     */
    @ApiModelProperty(value = "总服务费", required = true)
    private BigDecimal serviceCharge;
    /**
     * 还款方式 0:随借随还  1:分期还款
     */
    @ApiModelProperty(value = "还款方式 0:随借随还  1:分期还款", required = true)
    private Integer repaymentMethod;
    /**
     * 已还本金
     */
    private BigDecimal repaymentMoney;
    /**
     * 还款状态 0:还款中 1:已结清
     */
    private Integer repaymentStatus;
    /**
     * 分期期数
     */
    @ApiModelProperty(value = "分期期数", required = true)
    private Integer stageNum;

}
